package ModelLayer;

/**
 * Class to hold info about a single person
 * 
 * @author (Gruppe 2) 
 * @version (a version number or a date)
 */
public class Person
{
    // instance variables - 
    private int id;
    private String name;
    private String address;
    private String zipCode;
    private String phone;

    /**
     * Constructor for class Person
     * 
     * @param int id, String name, String address, String zipCode, String phone
     */
    public Person(int newId, String newName, String newAddress, String newZipCode, String newPhone)
    {
        id = newId;
        name = newName;
        address = newAddress;
        zipCode = newZipCode;
        phone = newPhone;
    }
    
    /**
     * mutator for id
     * 
     * @param int - id;
     */
    public void setId(int newId)
    {
        id = newId;
    }   
    
    /**
     * Accessor for id
     * 
     * @return int - id
     */
    public int getId()
    {
        return id;
    }
    
    /**
     * Mutator for name
     * 
     * @param String - name
     */
    public void setName(String newName)
    {
        name = newName;
    }

    /**
     * Accessor for name
     * 
     * @return String - name
     */
    public String getName()
    {
        return name;
    }  

    /**
     * Mutator for address
     * 
     * @param String - address
     */
    public void setAddress(String newAddress)
    {
        address = newAddress;
    }

    /**
     * Accessor for address
     * 
     * @return String - address
     */
    public String getAddress()
    {
        return address;
    }
    
    /**
     * Mutator for zipCode
     * 
     * @param String - zipCode
     */
    public void setZipCode(String newZipCode)
    {
        zipCode = newZipCode;
    }
    
    /**
     * Accessor for zipCode
     * 
     * @return String - zipCode
     */
    public String getZipCode()
    {
        return zipCode;
    }
    
    /**
     * Mutator for phone
     * 
     * @param String - phone
     */
    public void setPhone(String newPhone)
    {
        phone = newPhone;
    }

    /**
     * Accessor for phone
     * 
     * @return String - phone
     */
    public String getPhone()
    {
        return phone;
    }
}
